package com.plian.system.entity.fr.evaluation;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.Tools.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 质量评价
 * </p>
 *
 * @author hu song
 * @since 2023-04-06 16:07:20
 */
@Getter
@Setter
@TableName("fr_quality_evaluation")
@ApiModel(value = "QualityEvaluation对象", description = "质量评价")
public class QualityEvaluation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("资产评估报告核准id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("综合得分")
    private Integer score;

    @ApiModelProperty("扣分依据评估值偏离度")
    private String estimateDeviate;

    @ApiModelProperty("定额法扣分")
    private Integer quotaMethod;

    @ApiModelProperty("比例法扣分")
    private Integer proportionalMethod;

    @ApiModelProperty("核准（评估）机构")
    private String appraiseInstitution;

    @ApiModelProperty("评价人员")
    private String appraiseUser;

    @ApiModelProperty("签字评估师")
    private String signAppraiser;

    @ApiModelProperty("评估范围与经济行为不匹配")
    private Integer fiveScoreAssessmentScopeAndEconomicBehaviorMismatch;

    @ApiModelProperty("期后重大资产处置和价格变动")
    private Integer fiveScoreSignificantDisposalAndPriceChanges;

    @ApiModelProperty("资产负责可能存在重大损益事项")
    private Integer fiveScoreProfitAndLossMatters;

    @ApiModelProperty("可能影响评估结论的重大诉讼事项")
    private Integer fiveScoreLitigationMatters;

    @ApiModelProperty("评估清查存在的重大瑕疵")
    private Integer fiveScoreCriticalFlaw;

    @ApiModelProperty("重大假设评估")
    private Integer fiveScoreAssumptionEvaluation;

    @ApiModelProperty("5分事项 其他")
    private Integer fiveScoreOther;

    @ApiModelProperty("评估报告正文、明细表与技术说明数据前后不一致的")
    private Integer twoScoreInconsistentData;

    @ApiModelProperty("报告文字说明与实际不一致")
    private Integer twoScoreInconsistentTextDescription;

    @ApiModelProperty("2分事项 其他")
    private Integer twoScoreOther;

    @ApiModelProperty("评估说明对主要评估对象的清查不祥")
    private Integer oneScoreOminousInvestigation;

    @ApiModelProperty("评估说明对主要评估对象的评估不祥")
    private Integer oneScoreOminousAssessment;

    @ApiModelProperty("1分事项 其他")
    private Integer oneScoreOther;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String createUser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME, timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME, timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 状态[0:未删除,1:删除]
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "状态[0:未删除,1:删除]")
    private Integer isDeleted;
}
